home *** CD-ROM | disk | FTP | other *** search
Text File | 1993-09-24 | 409 b | 15 lines | [TEXT/ttxt] |
- Three all-time favorites: Fibonacci, Eratosthene's sieve, and the Unix
- "wc" utility, presented as standalone programs.
-
- To compile: either "make", or, by hand:
-
- camlc -o fib fib.ml
- camlc -o wc wc.ml
- camlc -o sieve sieve.ml
-
- To run:
-
- camlrun fib 10 # or some other number
- camlrun wc fib.ml # or some other files
- camlrun sieve 1000 # or some other number
-